//
//  ModelOfOthercomment.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/7.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfOthercomment.h"

@implementation ModelOfOthercomment
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr = [NSMutableArray array];
    if ([key isEqualToString:@"poi_id"]) {
        self.poi_id = [value integerValue];
    }if ([key isEqualToString:@"comment_id"]) {
        self.comment_id = [value integerValue];
    }if ([key isEqualToString:@"star"]) {
        self.star = [value integerValue];
    }if ([key isEqualToString:@"user_id"]) {
        self.user_id = [value integerValue];
    }if ([key isEqualToString:@"create_time"]) {
        self.create_time  =[value integerValue];
    }if ([key isEqualToString:@"useful_count"]) {
        self.useful_count = [value integerValue];
    }if ([key isEqualToString:@"useful"]) {
        self.useful = [value integerValue];
    }if ([key isEqualToString:@"photos"]) {
        for (NSDictionary *dic in value) {
            ModelOfCommentPhotos *model = [ModelOfCommentPhotos modelWithDic:dic];
            [arr addObject:model];
        }
        self.photos = arr;
    }
}
@end
